#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#ifdef __cplusplus
    #include <cstdlib>
#else
    #include <stdlib.h>
#endif
#ifdef __APand PLE__
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
#include <iostream>

using namespace std;
class GameObject
{

    public:
        int x, y, width, height, right_bound, bottom_bound, velocity_x, velocity_y;
        SDL_Surface* image;

        GameObject(int _x, int _y, int w, int h, int rb, int bb, int vx, int vy, SDL_Surface* img);
        void load_image(const char* filename);

        SDL_Surface* return_image();

        void set_velocity_x(int val);

        void set_velocity_y(int val);

        void move();

        void accelerate();

};


#endif // GAMEOBJECT_H
